wayland: Ignore NoSymbol keys
authorDaniel Stone <daniels@collabora.com>
Wed, 27 Apr 2016 12:06:38 +0000 (14:06 +0200)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 27 Apr 2016 13:00:30 +0000 (14:00 +0100)
commit210a747ff082796fb28ee3a626be9e6bff0ea722
tree6664bcd7254ef30e284b4b801d9fee45f43992ff
parent605e205584f9076003e4becb5afc9814f3767fd1
wayland: Ignore NoSymbol keys

NoSymbol is not a valid GDK symbol (it only has the concept of
VoidSymbol, for some reason, which is neither the same thing nor
produced by any sane keymap). Passing NoSymbol events through to GTK+
apps is unlikely to produce anything useful.

In particular, this meant VTE would scroll to the end of the buffer when
pressing Fn (required for Page Up/Down on Macs), as it was receiving a
keypress that wasn't a modifeir. This does not happen on X11, as the
KEY_FN keycode is above 255, so does not get sent to clients.

https://bugzilla.gnome.org/show_bug.cgi?id=764825
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkkeys-wayland.c